/* request这个参数什么都可以，上下对应即可*/
import request from '@/utils/http'
export function getCategoryAPI(id){
  return request({
    url:'/category',
    params:{
      id
    }
  })
}
 /**
  * 获取二级分类列表数据
  * param id 分类id
  */
 export const getCategoryFilterAPI=(id)=>{
  return request({
    url:'/category/sub/filter',
    params:{
      id
    }
  })
 }
 /**
  * 获得导航数据
  * data：{
  * categoryId:1005000,
  * page:1,
  * pageSize:20,
  * sortField:'publishTime'|'orderNum'|'evaluateNum'
  * }
  */
 export const getSubCategoryAPI=(data)=>{
  return request({
    url:'/category/goods/temporary',
    method:'POST',
    data
  })
 }